package edu.xhu.communityantiepidemicsystemback.common.result;

import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> {
    private Integer code;

    private String msg;

    private long total;

    private List<T> rows;

    public PageResult() {
    }

    public PageResult(long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
        this.code = 200;
        this.msg = "";
    }
}
